import request from '@/utils/request'

// 查询考试记录列表
export function listUserExam(query) {
  return request({
    url: '/business/userExam/list',
    method: 'get',
    params: query
  })
}

// 查询考试记录所有列表
export function listAllUserExam(query) {
  return request({
    url: '/business/userExam/listAll',
    method: 'get',
    params: query
  })
}

// 查询考试记录详细
export function getUserExam(id) {
  return request({
    url: '/business/userExam/getInfo/' + id,
    method: 'get'
  })
}

// 新增考试记录
export function addUserExam(data) {
  return request({
    url: '/business/userExam/add',
    method: 'post',
    data: data
  })
}

// 修改考试记录
export function updateUserExam(data) {
  return request({
    url: '/business/userExam/edit',
    method: 'post',
    data: data
  })
}

// 删除考试记录
export function delUserExam(id) {
  return request({
    url: '/business/userExam/remove/' + id,
    method: 'get'
  })
}
